package org.example.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.mapper.SysMapper;
import org.example.pojo.*;

import org.example.service.RoleService;
import org.example.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.lang.System;
import java.util.List;

@Controller
@RequestMapping("/system")
@Transactional
@Api("system测试")
public class SysController {


    @Autowired
    SysMapper sysMapper;


    public HttpServletRequest request;


    @PostMapping("/showSystem")
    @ResponseBody
    @ApiOperation("显示系统信息")
    public SystemPojo showSystem(){




       SystemPojo system = sysMapper.selectAll();


        return system;
    }















}
